<?php echo form_open('lienhe/chinhanh'); ?>
<div class="page-header">
    <h2><b>Liên hệ Trung Tâm Gia Sư 7s</b></h2>
</div>

<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Liên hệ   </h3>
    </div>
    <div class="panel-body">
        <div  style="text-align: center;font-size: 1.5em; color: green;">
            <strong><b>CÔNG TY TƯ VẤN GIÁO DỤC VÀ KINH DOANH 7S</b></strong>
        </div>

        <div>
            <p><b>Giờ làm việc:</b></p>
            <p><span>+Sáng:7h - 11h30</span></p>
            <p>+Chiều:13h30 - 17h30</p>    
        </div>    

        <div>
            <p><b>Văn phòng điều hành:</b></p>
            <p>Địa chỉ: 59 đường số 13, khu phố 1, phường Linh Tây-Thủ Đức-TP.HCM.</p>
            <p>Điện thoại: 08.3603.0685 - 0903.613.648</p>
            <p>Email:<a href="#">info.hcm@s7s.com.vn</a></p>

        </div>
        <div  style="text-align: center;font-size: 1.5em; color: red;">
            <strong><b>Khách hàng an tâm:</b></strong>
        </div>
        <div  style="text-align: center;font-size: 1.6em; color: green;">
            <strong><b>"Khoảng cách địa lý không ảnh hưởng đến dịch vụ 7s"</b></strong>
        </div>
    </div>
</div>

<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Điểm giao dịch   </h3>
    </div>
    <div class="panel-body" >
        <h1 style="text-align: center;color: green;font-size: 1.5em">CÁC CHI NHÁNH</h1><br>
        <?php foreach ($chinhanh as $tem) { ?>
            <?php if ($tem['id'] == 1) {// $_SESSION['b'] = $tem['id']; ?>
                <div>   
                    <div style="margin-left:23px; float: left;width: 280px;height: 120px;background-color: whitesmoke;border:1px solid #a1a1a1;">
                        <p style="margin:17px;color: green"> <?php echo anchor('lienhe/chinhanh/chinhanh1/1', 'Chi nhánh:') ?><?php echo $tem['id']; ?><br>
                            <?php echo anchor('lienhe/chinhanh/chinhanh1/1', 'Số điện thoại:') ?>   <?php echo $tem['dienthoai']; ?><br>
                            <?php echo anchor('lienhe/chinhanh/chinhanh1/1', 'Địa chỉ:') ?>   <?php echo $tem['diachi']; ?><br>
                        </p>
                    </div>

                </div>
            <?php }
        }
        ?>
        <?php foreach ($chinhanh as $tem) { ?>
    <?php if ($tem['id'] == 2) {// $_SESSION['b'] = $tem['id'];  ?>
                <div>   
                    <div style="margin-left:23px; float: left;width: 280px;height: 120px;background-color: whitesmoke;border:1px solid #a1a1a1;">
                        <p style="margin:17px;color: green"> <?php echo anchor('lienhe/chinhanh/chinhanh1/2', 'Chi nhánh:') ?><?php echo $tem['id']; ?><br>
                            <?php echo anchor('lienhe/chinhanh/chinhanh1/2', 'Số điện thoại:') ?>   <?php echo $tem['dienthoai']; ?><br>
        <?php echo anchor('lienhe/chinhanh/chinhanh1/2', 'Địa chỉ:') ?>   <?php echo $tem['diachi']; ?><br>
                        </p>
                    </div>

                </div>
            <?php }
        }
        ?>  
<?php foreach ($chinhanh as $tem) { ?>
    <?php if ($tem['id'] == 3) {// $_SESSION['b'] = $tem['id'];  ?>
                <div>   
                    <div style="margin-left:23px; float: left;width: 280px;height: 120px;background-color: whitesmoke;border:1px solid #a1a1a1;">
                        <p style="margin:17px;color: green"> <?php echo anchor('lienhe/chinhanh/chinhanh1/3', 'Chi nhánh:') ?><?php echo $tem['id']; ?><br>
        <?php echo anchor('lienhe/chinhanh/chinhanh1/3', 'Số điện thoại:') ?>   <?php echo $tem['dienthoai']; ?><br>
        <?php echo anchor('lienhe/chinhanh/chinhanh1/3', 'Địa chỉ:') ?>   <?php echo $tem['diachi']; ?><br>
                        </p>
                    </div>

                </div>
            <?php }
        }
        ?>        
<?php foreach ($chinhanh as $tem) { ?>
                        <?php if ($tem['id'] == 4) {// $_SESSION['b'] = $tem['id'];  ?>
                <div>   
                    <div style="margin-left:23px; float: left;width: 280px;height: 120px;background-color: whitesmoke;border:1px solid #a1a1a1;">
                        <p style="margin:17px;color: green"> <?php echo anchor('lienhe/chinhanh/chinhanh1/4', 'Chi nhánh:') ?><?php echo $tem['id']; ?><br>
        <?php echo anchor('lienhe/chinhanh/chinhanh1/4', 'Số điện thoại:') ?>   <?php echo $tem['dienthoai']; ?><br>
        <?php echo anchor('lienhe/chinhanh/chinhanh1/4', 'Địa chỉ:') ?>   <?php echo $tem['diachi']; ?><br>
                        </p>
                    </div>

                </div>
            <?php }
        }
        ?>
                    <?php foreach ($chinhanh as $tem) { ?>
                        <?php if ($tem['id'] == 5) {// $_SESSION['b'] = $tem['id']; ?>
                <div>   
                    <div style="margin-left:23px; float: left;width: 280px;height: 120px;background-color: whitesmoke;border:1px solid #a1a1a1;">
                        <p style="margin:17px;color: green"> <?php echo anchor('lienhe/chinhanh/chinhanh1/5', 'Chi nhánh:') ?><?php echo $tem['id']; ?><br>
        <?php echo anchor('lienhe/chinhanh/chinhanh1/5', 'Số điện thoại:') ?>   <?php echo $tem['dienthoai']; ?><br>
                <?php echo anchor('lienhe/chinhanh/chinhanh1/5', 'Địa chỉ:') ?>   <?php echo $tem['diachi']; ?><br>
                        </p>
                    </div>

                </div>
    <?php }
}
?>        
        <div  style="float: left;margin-left: 100px;text-align: center;font-size: 1.5em; color: red;">
            <strong><b>Điện thoại tư vấn: 08.3603.0685 - 0903.613.648</b></strong>
        </div>
    </div>
</div>
<?php echo form_close(); ?>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Góp ý   </h3>
    </div>
    <div class="panel-body">
        <?php
        $attributes = array('class' => 'form-horizontal', 'role' => 'form',);
        echo form_open("lienhe/feedback");
        ?>
        <div class="form-group row">
            <label class="col-sm-3 control-label">Họ và tên</label>
            <div class="col-sm-9">
                <input type="text" class="form-control"  placeholder="Họ và tên" name="name" />
            </div>   
        </div>   
        <span style="color:red;"><?php echo form_error('name'); ?></span>

        <div class="form-group row">
            <label class="col-sm-3 control-label">Điện thoại</label>
            <div class="col-sm-9">
                <input type="text" class="form-control"  placeholder="Số điện thoại" name="sdt" />
            </div>
        </div>      
        <span style="color:red;"><?php echo form_error('sdt'); ?></span>

        <div class="form-group row">
            <label class="col-sm-3 control-label">Email</label>
            <div class="col-sm-9">
                <input type="email" class="form-control" placeholder="Email" name="email" />
            </div>
        </div>
        <span style="color:red;"><?php echo form_error('email'); ?></span>

        <div class="form-group row">
            <label class="col-sm-3 control-label">Tiêu đề</label>
            <div class="col-sm-9">
                <input type="text" class="form-control"  placeholder="Tiêu đề" name="title"/>
            </div>
        </div>
        <span style="color:red;"><?php echo form_error('title'); ?></span>

        <div class="form-group row">
            <label class="col-sm-3 control-label">Nội dung</label>
            <div class="col-sm-9">
                <textarea class="form-control" rows="3" name="content" placeholder="Nội dung phản hồi ..."></textarea>
            </div>
        </div>
        <span style="color:red;"><?php echo form_error('content'); ?></span>

        <div class="form-group row">
            <div class="col-sm-offset-2 col-sm-1">
                <button type="submit"  name="phanhoi" class="btn btn-primary" value="Gui">Phản hồi</button>
            </div>
            <div class="col-sm-offset-2 col-sm-1">
                <input type="reset" class="btn btn-default" value="Làm lại" />
            </div>
        </div>
        <?php echo form_close(); ?>
    </div>
</div>
</div>
